const express =require('express')
// const cors =require('cors')
const app=express()

// app.use(cors())
app.use(express.json())
app.use(express.urlencoded({extended:false}))

app.get('/getList',(req,res)=>{
    console.log('訪問了我')
res.send({
    status:'200',
    data:[{name:'server1'}]
})
})
app.listen('3001',()=>{
    console.log('服务启动了运行在3001端口')
})
